{% for host in groups['hadoop'] %}
{{ hostvars[host].hostname | default(host) }}
{% endfor %}
